package com.guofen.dao;

import com.guofen.pojo.SjqCompostProduceInspection;
import com.guofen.pojo.SjqCompostProduceMaintenanceDay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SjqCompostProduceMaintenanceDayMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqCompostProduceMaintenanceDay record);

    int insertSelective(SjqCompostProduceMaintenanceDay record);

    SjqCompostProduceMaintenanceDay selectByPrimaryKey(Integer id);

    SjqCompostProduceMaintenanceDay getlast(Map<String, Object> data);

    List<SjqCompostProduceMaintenanceDay> getlastByName(String equipmentName);

    int updateByPrimaryKeySelective(SjqCompostProduceMaintenanceDay record);

    int updateByPrimaryKey(SjqCompostProduceMaintenanceDay record);

    int selectInToday();

    List<SjqCompostProduceMaintenanceDay> getDailyRecords();

    List<SjqCompostProduceMaintenanceDay> selectAll();

    List<SjqCompostProduceMaintenanceDay> selectByDate(@Param("startDate") String startDate,
                                                   @Param("endDate") String endDate);
}